package com.bcbim.smart_water.health.mapper;

import com.bcbim.common.sys.Code;
import com.bcbim.smart_water_interface.health.vo.SelectDefectLevelVO;
import com.bcbim.smart_water_interface.health.vo.SelectDefectVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description: 缺陷分类mapper
 * @Author: ye
 * @Date: 2021/8/27
 * @Version: V1.0
 **/
@Mapper
public interface DefectMapper {

    /**
     * @Description: 缺陷种类查询
     * @Param: defectType 缺陷类型
     * @Return: ReturnMsg
     * @Author: ye
     * @Date: 2021/8/27
     * @return
     */
    List<Code> getDefect(String defectType);

    /**
     * @Description: 查询缺陷附带缺陷类型
     * @Param:
     * @Return: List<SelectDefectVO>
     * @Author: ye
     * @Date: 2021/11/4
     */
    List<SelectDefectVO> selectDefect();

    /**
     * @Description: 缺陷等级
     * @Param: defectId
     * @Return: List<SelectDefectLevelVO>
     * @Author: ye
     * @Date: 2021/11/4
     */
    List<SelectDefectLevelVO> selectDefectLevel(String defectId);
}
